package com.nbot.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.nbot.server.mapper.fourth.AlarmMapper;
import com.nbot.server.domain.AlarmDO;
import com.nbot.server.service.AlarmService;



@Service
public class AlarmServiceImpl implements AlarmService {
	@Autowired
	private AlarmMapper alarmMapper;
	
	@Override
	public AlarmDO get(String ioservername){
		return alarmMapper.get(ioservername);
	}
	
	@Override
	public List<AlarmDO> list(Map<String, Object> map){
		return alarmMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return alarmMapper.count(map);
	}
	
	@Override
	public int save(AlarmDO alarm){
		return alarmMapper.save(alarm);
	}
	
	@Override
	public int update(AlarmDO alarm){
		return alarmMapper.update(alarm);
	}
	
	@Override
	public int remove(String ioservername){
		return alarmMapper.remove(ioservername);
	}
	
	@Override
	public int batchRemove(String[] ioservernames){
		return alarmMapper.batchRemove(ioservernames);
	}
	
}
